#include <stdint.h>
#include "globals.h"

#include "startup.c"

int main(int argc, char* argv[]) {
  puts("Hello World.\n");
  return 0;
}

int call() {
  return g.OBJS[0].call1(g_OBJS[0].id) + g.OBJS[1].call1(g_OBJS[1].id);
}

void _start(unsigned **info) {
  int envc = (int)info[1];
  int argc = (int)info[2];
  char **argv = (char**)&info[3];
  char **envp = argv + argc + 1;
  unsigned *auxv = (unsigned *)(envp + envc + 1);
  static char buf[sizeof(void*) * 7];

	_init_basic(auxv);

  do_hello();
  if (call() != 18) {
    exit(1);
  }

  exit(0);
}
